<?php
$this->title = '我的账号';

use kartik\editable\Editable;

$roles = Yii::$app->authManager->getRolesByUser($model->id);


?>
<style type="text/css">
	.p1{font-size: 16px;margin-bottom: 15px;}
	#my_basic .s1{margin-right:10px;padding:5px;background:#3C8DBC;color: #FFFFFF;border-radius: 4px;
	-moz-box-shadow: 1px 1px 3px #888888; /* 老的 Firefox */
		box-shadow: 1px 1px 3px #888888;}
</style>
<div class="box">
    <div class="box-header">
    </div>
    <div class="box-body">
    	<div id="my_basic">
			<div class="p1">用户名：<?=$model->username?></div>

			<div class="p1">姓 名：<?=$model->name?></div>

			<div class="p1">角 色：<?php
			 	if($roles){
			 		 foreach($roles as $role){
		                echo '<span class="s1">'.$role->name.'</span>';
		            }
			 	}
			?></div>
		</div>		
	</div>
</div>